import request from '@/router/axios';
import qs from 'qs'
export const queryDict = (evalue) => { // 字典查询
  return request({
    url: '/api/blade-public/dictCommon/queryDict1',
    method: 'post',
    data:{
      evalue
    }
  })
}


export const secondQueryDict = (id) => { // 二级字典查询
  return request({
    url: '/api/blade-public/dictCommon/queryDict2',
    method: 'post',
    data:{
      id
    }
  })
}

export const queryCountry = (size =233) => { // 查询国家地区
  return request({
    url: '/api/blade-public/dictCountry/query',
    method: 'post',
    data:{
      size
    }
  })
}


export const editDict = (form) => { // 编辑字典信息
  return request({
    url: '/api/blade-public/dictCommon/editDict',
    method: 'post',
    data: qs.stringify(form)
  })
}


export const queryUnit = () => { // 查询单位字典信息
  return request({
    url: '/api/blade-public/dictUnit/query',
    method: 'post',
  })
}

export const queryCurrencyUnit = () => { // 查询单位字典信息
  return request({
    url: '/api/blade-public/dictCurrency/query',
    method: 'get'
  })
}
export const queryAll = () => { // 查询单位字典信息
  return request({
    url: '/api/blade-system/dict/list',
    method: 'get',
  })
}
